package org.hikari.qqbot.xiuxian.configuration;

import cn.hutool.core.lang.Assert;
import org.hikari.qqbot.xiuxian.service.bo.UserSetting;
import org.springframework.beans.factory.InitializingBean;

/**
 * created at 2024-12-19 11:31:34
 *
 * @author yinchao
 * @version 1.0
 **/
public class UserSettingProperties extends UserSetting implements InitializingBean {

    @Override
    public void afterPropertiesSet() throws Exception {
        Assert.notNull(getUserId(), "缺少必要的配置项 'user-id'");
        Assert.notNull(getServerUrl(), "缺少必要的配置项 'server-url'");
    }

}
